import request from '@/utils/request'

// 查询商品分类标签;参考数据字典ERP_PRODUCT_CLASSIFY列表
export function listProductClassify(query) {
  return request({
    url: '/gather/gather/productClassify/list',
    method: 'get',
    params: query
  })
}

// 查询商品分类标签;参考数据字典ERP_PRODUCT_CLASSIFY详细
export function getProductClassify(id) {
  return request({
    url: '/gather/gather/productClassify/' + id,
    method: 'get'
  })
}

// 新增商品分类标签;参考数据字典ERP_PRODUCT_CLASSIFY
export function addProductClassify(data) {
  return request({
    url: '/gather/gather/productClassify',
    method: 'post',
    data: data
  })
}

// 修改商品分类标签;参考数据字典ERP_PRODUCT_CLASSIFY
export function updateProductClassify(data) {
  return request({
    url: '/gather/gather/productClassify',
    method: 'put',
    data: data
  })
}

// 删除商品分类标签;参考数据字典ERP_PRODUCT_CLASSIFY
export function delProductClassify(id) {
  return request({
    url: '/gather/gather/productClassify/' + id,
    method: 'delete'
  })
}

// 查询erp不存在的sku列表
export function listCollectAbsentSku(query) {
  return request({
    url: '/gather/gather/collectAbsentSku/list',
    method: 'get',
    params: query
  })
}

// 改变状态为已采集
export function setStatus(query) {
  return request({
    url: '/gather/collectAbsentSku/setStatus',
    method: 'post',
    data: query
  })
}

// 删除优先采集任务
export function deleteTask(query) {
  return request({
    url: '/gather/collectAbsentSku/delete',
    method: 'delete',
    params: query
  })
}
